@extends('main')

@section('tip', '修改评论')

@section('content')

<div class="row">
    <div class="col-md-8 col-md-offset-2">
    {!! Form::open(['route'=>['comment.update', $comment->id], 'method'=>'PUT']) !!}
    {!! Form::label('name', '称呼:') !!}
    {!! Form::text('name', $comment->name, ['class'=>'form-control', 'disabled'=>'disabled']) !!}
    {!! Form::label('email','邮箱:') !!}
    {!! Form::email('email', $comment->email, ['class'=>'form-control', 'disabled'=>'disabled']) !!}
    {!! Form::label('comment','评论:') !!}
    {!! Form::textarea('comment', $comment->comment, ['class'=>'form-control', 'rows'=>'4']) !!}
    {!! Form::submit('保存', ['class'=>'btn btn-primary btn-sm', 'style'=>'margin-top:10px']) !!}
    {!! Form::close() !!}
    </div>
</div>

@endsection